PreviousNextTracker indexSee it online !

(51/185) 124 - PerlSideKick should allow filtering predeclarations

jEdit 4.3pre16 / Windows XP + SP3 / Sun JRE 1.6.0_11
------------
File --> New in Mode --> perl
Enter the following:
sub foo();
sub foo() { }
Save as "foo.pl"
Open Sidekick. The subroutine foo appears twice, because it is predeclared.
------------
This is by design, I guess. However I always predeclare all perl subroutines, which allows to avoid some warnings when using mutual recursion etc. Then the sidekick gets cluttered.

So I would like to add an option to filter out the extra entries for predeclarations.

Submitted bgolding - 2009-03-31 09:57:11 Assigned hertzhaft
Priority 2 Labels
Status open Group None
Resolution None

Comments

2009-03-31 09:57:36
bgolding

- **priority**: 5 --> 2

2009-03-31 16:38:35
hertzhaft

Yes, it's by design, as subroutines with the same name can be in different "package" sections in the same file. I'll look into the code to see if the subroutine regex can be changed to disregard predeclarations.

Martin

2009-03-31 16:38:36
hertzhaft

- **assigned_to**: nobody --> hertzhaft